<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Console</title>
    <link rel="stylesheet" href="http://yui.yahooapis.com/3.4.0pr3/build/cssgrids/grids-min.css">
    <link rel="stylesheet" href="../assets/css/main.css">
    <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
    <script src="../../build/yui/yui-min.js"></script>
</head>
<body>

<div id="doc">
    <h1>Console</h1>

    
        <a href="#toc" class="jump">Jump to Table of Contents</a>
    

    <div class="yui3-g">
        <div id="main" class="yui3-u">
            <div class="content"><div class="intro component" style="overflow: hidden;">
    <p>
        <img alt="Screen capture of the Console UI"
            src="../assets/console/images/small.png"
            height="203" width="200" style="border: 0 none; float: right; margin-left: 2em;">

        The Console tool provides a display to read log messages emitted by the
        YUI logging subsytem. With this tool, you can tap into the rich
        event-driven messages included with the YUI Library's debug files.
        This messaging allows you to get a fuller picture of the inner workings
        of any YUI Library component.
    </p>

    <p>
        Additionally, when building your own Widgets, utilities or
        applications, you can include your own log statements and use the
        Console to aid in development and debugging.  As a simple message
        display mechanism, you can also repurpose Console through extention or
        configuration to listen to a different input source and display
        messages differently.
    </p>
</div>

<h2 id="getting-started">Getting Started</h2>

<p>
To include the source files for Console and its dependencies, first load
the YUI seed file if you haven't already loaded it.
</p>

<pre class="code prettyprint">&lt;script src=&quot;http:&#x2F;&#x2F;yui.yahooapis.com&#x2F;3.4.0&#x2F;build&#x2F;yui&#x2F;yui-min.js&quot;&gt;&lt;&#x2F;script&gt;</pre>


<p>
Next, create a new YUI instance for your application and populate it with the
modules you need by specifying them as arguments to the <code>YUI().use()</code> method.
YUI will automatically load any dependencies required by the modules you
specify.
</p>

<pre class="code prettyprint">&#x2F;&#x2F; Create a new YUI instance and populate it with the required modules.
YUI().use(&#x27;console&#x27;, function (Y) {
    &#x2F;&#x2F; Console is available and ready for use. Add implementation
    &#x2F;&#x2F; code here.
});</pre>


<p>
For more information on creating YUI instances and on the
<a href="http://yuilibrary.com/yui/docs/api/classes/YUI.html#method_use"><code>use()</code> method</a>, see the
documentation for the <a href="../yui/index.html">YUI Global object</a>.
</p>


<h3 id="sam">Trigger the CSS skin</h3>

<p>
    For the default &quot;Sam&quot; skin to apply to the Console UI, you'll
    need to apply the <code>yui3-skin-sam</code> class name to an element that
    is a parent of the element in which the Console lives. You can usually
    accomplish this simply by putting the class on the
    <code>&#60;body&#62;</code> tag:
</p>

<pre class="code prettyprint">&lt;body class=&quot;yui3-skin-sam&quot;&gt;</pre>


<p>
    For more information on skinning YUI components and making use of default
    skins, see our
    <a href="http://yuilibrary.com/yui/docs/tutorials/understanding-skinning/">Understanding
    YUI Skins</a> tutorial.
</p>

<h2 id="logging">The YUI logging subsystem</h2>

<p>
    The entry point to YUI's logging subsystem is the YUI instance's <code>log(..)</code> method.
</p>

<pre class="code prettyprint">&#x2F;&#x2F;       message     category  source
Y.log(&quot;Hello world!&quot;, &quot;info&quot;,  &quot;myapp&quot;);</pre>


<p>
    If the YUI instance is configured with <code>debug</code> set to
    <code>true</code> (the default), any calls to <code>Y.log(..)</code> will
    be printed to the browser's native <code>console</code> if it has one, and
    broadcast through the <code>yui:log</code> event.
</p>

<p>
    When a Console is instantiated, the native console reporting of YUI log
    messages is disabled in favor of reporting in the Console UI.  If you wish
    to preserve native console reporting, set the
    <code>useBrowserConsole</code> configuration attribute to <code>true</code>
    during Console construction.
</p>

<h2 id="using">Using the Console Widget</h2>

<h3 id="setup">Instantiating and configuring a Console</h3>

<h4 id="instantiation">Instantiation</h4>

<p>
    Creating an instance of Console is very easy; there are no required
    configuration attributes, and it is typically rendered without reference to
    an existing DOM element.
</p>

<pre class="code prettyprint">YUI({..}).use(&#x27;console&#x27;, function (Y) {

    &#x2F;&#x2F; Console has no required configuration
    var yconsole = new Y.Console();

    yconsole.render();

    &#x2F;&#x2F; In fact, you often don&#x27;t even need to store the instance
    new Y.Console().render();

    &#x2F;* YOUR CODE HERE *&#x2F;
});</pre>


<p>
    By default, Console instances are positioned absolutely in the top right
    corner of the page.  As seen below and in the examples, this is configurable by
    setting the <code>style</code> attribute.
</p>

<h4 id="config">Common configuration attributes</h4>

<p>
    Below are some common configuration attributes.  Refer to the API docs for
    a complete list of configuration options.
</p>

<table>
<thead>
    <tr>
        <th>Attribute</th>
        <th>Description</th>
        <th>Default</th>
    </tr>
</thead>
<tbody>
    <tr>
        <td><code>logLevel</code></td>
        <td>Set to &quot;warn&quot; or &quot;error&quot; to omit messages of lesser severity</td>
        <td>&quot;info&quot;</td>
    </tr>
    <tr>
        <td><code>newestOnTop</code></td>
        <td>Set to false to place new messages <em>below</em> prior messages</td>
        <td>true</td>
    </tr>
    <tr>
        <td><code>consoleLimit</code></td>
        <td>Limit the number of messages displayed in the UI</td>
        <td>300</td>
    </tr>
    <tr>
        <td><code>height</code></td>
        <td>Specify the height of the Console.  Useful for displaying more messages</td>
        <td>&quot;300px&quot;</td>
    </tr>
    <tr>
        <td><code>style</code></td>
        <td>Relationship of the Console to the page content.  Supported values are &quot;inline&quot;, &quot;block&quot;, and &quot;separate&quot;</td>
        <td>&quot;separate&quot; (absolute positioned in the top right corner)</td>
    </tr>
</tbody>
</table>

<h4 id="buffer">The print loop</h4>

<p>
    Incoming log messages are buffered and printed in a scheduled batch cycle
    to lessen the impact to the normal operation of the page.  The print loop
    renders a fixed number of buffered messages at a time.
</p>

<p>
    The print loop behavior can be configured with the
    <code>printTimeout</code> and <code>printLimit</code> configuration
    attributes.  The former controls the millisecond timeout between iterations
    of the print loop.  The latter limits the number of entries to add to the
    Console in each iteration of the print loop.  By default their respective
    values are 100 and 50.
</p>

<h4 id="universal">Share a Console between YUI instances</h4>

<p>
    Console behaves like any other YUI module and remains sandboxed inside the
    particular YUI instance that spawned it.  However, it is possible to create
    a universal Console to report the activity in the logging subsystems of
    every YUI instance on the page.
</p>

<p>
    To support cross YUI instance communication, a shared global EventTarget
    named <code>Y.Global</code> is exposed on every YUI instance, and
    <code>yui:log</code> events are configured to bubble to this
    EventTarget.
</p>

<p>
    Console has attributes <code>logSource</code> and <code>logEvent</code>
    that can be used to link the Console instance up to an entirely different
    messaging subsystem.  By setting the Console's <code>logSource</code> to
    <code>Y.Global</code> and leaving the <code>logEvent</code> alone, the
    single Console instance will receive log messages from every YUI instance
    on the page.
</p>

<pre class="code prettyprint">YUI().use(&#x27;console&#x27;,&#x27;overlay&#x27;, function (Y) {

    &#x2F;&#x2F; Create a universal Console
    new Y.Console({ logSource: Y.Global }).render();

    &#x2F;* YOUR CODE HERE *&#x2F;

    });

    YUI().use(&#x27;dd&#x27;, function (Y) {

    &#x2F;&#x2F; Y.log statements here will be reported in the Console generated in the
    &#x2F;&#x2F; other YUI instance.

});</pre>


<p>
    Look at the <a href="console-global.html">Creating a
    universal Console</a> example for reference.
</p>

<h3 id="display">Console display</h3>

<h4 id="anatomy-of-the-console">Anatomy of the Console</h4>

<p>
    The Console has a very simple display, split into a header, body, and
    footer.
</p>

<img src="../assets/console/images/console_anatomy.png" alt="visual demarcation of Console's header, body, and footer">

<p>
    The default placement of a Console is absolutely positioned in the top
    right corner of the page.  This can be configured with the
    <code>style</code> attribute.  The <a
    href="console-basic.html">Creating a Console for
    debugging</a> example illustrates how to accomplish this.
</p>

<h4 id="anatomy">Anatomy of a message</h4>

<p>
    Incoming log messages are normalized to objects with the following
    properties:
</p>

<table>
<thead>
    <tr>
        <th>Property</th>
        <th>Description</th>
    </tr>
</thead>
<tbody>
    <tr>
        <td><code>message</code></td>
        <td>The message text</td>
    </tr>
    <tr>
        <td><code>category</code></td>
        <td>The category or log level of the message (e.g. &quot;info&quot;, &quot;warn&quot;, or &quot;note&quot;)</td>
    </tr>
    <tr>
        <td><code>source</code></td>
        <td>The name of the source module</td>
    </tr>
    <tr>
        <td><code>localTime</code></td>
        <td>The time the message was received</td>
    </tr>
    <tr>
        <td><code>elapsedTime</code></td>
        <td>The time elapsed since the last message was received</td>
    </tr>
    <tr>
        <td><code>totalTime</code></td>
        <td>The time elapsed since the Console was instantiated</td>
    </tr>
</tbody>
</table>

<p>
    These message objects are eventually rendered into the Console body like
    this:
</p>

<img src="../assets/console/images/message_anatomy.png" alt="visual demarcation of the various parts of a Console entry">

<p>
    Log messages from the standard <code>logLevel</code> categories
    &quot;info&quot;, &quot;warn&quot;, and &quot;error&quot; get special
    visual treatment.  Specifically, the category is omitted from the message
    meta and &quot;warn&quot; and &quot;error&quot; messages include an icon
    and specific coloring.
</p>

<img src="../assets/console/images/info_warn_error.png" alt="One of each info, warn, and error type messages">

<h3 id="controls">Console interaction</h3>

<h4 id="collapse">Collapsing, expanding, hiding and showing</h4>

<p>
    Collapse and expand the Console with the Collapse/Expand button in the
    header or by setting the <code>collapsed</code> attribute to
    <code>true</code> or calling the instance's <code>collapse()</code> and
    <code>expand()</code> methods.
</p>

<img src="../assets/console/images/collapsed.png" alt="A collapsed Console">

<p>
    Calling the instance's <code>hide()</code> method will entirely remove the
    UI from the page.  <code>show()</code> will cause it to reappear.
</p>

<h4 id="pause">Pausing</h4>

<p>
    Pause the Console with either the checkbox in the Console footer or by
    setting the <code>paused</code> attribute.
</p>

<p>
    When paused, messages will accumulate in the buffer, but will not be
    displayed until the Console is unpaused.
</p>

<h4 id="clear">Clearing and resetting</h4>

<p>
    Flush the body of messages by clicking the Clear button in the Console
    footer or calling the instance's <code>clearConsole()</code> method.
</p>

<p>
    Clearing the Console will also flush the buffered messages not yet
    printed.
</p>

<p>
    Calling the instance's <code>reset()</code> method will clear the Console,
    flush the buffer, unpause, and reseed the Console's
    <code>startTime</code>.
</p>

<h3 id="filter">Filtering Console messages</h3>

<p>
    Log messages can typically be filtered in two ways: by category (or
    <code>logLevel</code>) and by source.  Category filtering is only available
    at the Console level, but source filtering can be accomplished at the YUI
    config level or the Console level (via the <a
    href="../console-filters/index.html">ConsoleFilters plugin</a>).  Each approach below
    has a varying degree of impact to your page's performance.
</p>

<h4 id="debug_files">Using debug files</h4>

<p>
    All YUI module files come in three flavors:
</p>

<ul>
    <li><code><em>module</em>-min.js</code> (min version)</li>
    <li><code><em>module</em>.js</code> (raw version)</li>
    <li><code><em>module</em>-debug.js</code> (debug version)</li>
</ul>

<p>
    Of these, only the debug version includes <code>Y.log(..)</code>
    statements.  Explicitly including <code>&lt;script&gt;</code> tags in your
    source pointing to either the raw or min version of a module will
    effectively filter out messages from that module.  The combo service
    supports combining any mixture of min, raw, and debug files as well.
</p>

<pre class="code prettyprint">&lt;script src=&quot;http:&#x2F;&#x2F;yui.yahooapis.com&#x2F;3.4.0&#x2F;build&#x2F;yui&#x2F;yui-min.js&quot;&gt;&lt;&#x2F;script&gt;
&lt;!-- Include debug messages from the node module --&gt;
&lt;script src=&quot;http:&#x2F;&#x2F;yui.yahooapis.com&#x2F;3.4.0&#x2F;build&#x2F;node&#x2F;node-debug.js&quot;&gt;&lt;&#x2F;script&gt;
&lt;script&gt;
YUI().use(&#x27;overlay&#x27;, function (Y) {
    &#x2F;&#x2F; Overlay requires Node.  Any other missing dependencies are automatically
    &#x2F;&#x2F; loaded, excluding node-min.js since the node module  is already provided
    &#x2F;&#x2F; by the inline script tag.
});
&lt;&#x2F;script&gt;</pre>


<p>Th
    is has the least impact on page performance.
</p>

<h4 id="yui_config">Choose which modules log</h4>

<p>
    There are five YUI instance configurations that affect the logging
    subsystem behavior:
</p>

<table>
<thead>
    <tr>
        <th>Property</th>
        <th>Example</th>
        <th>Role</th>
    </tr>
</thead>
<tbody>
    <tr>
        <td><code>debug</code></td>
        <td><code>Y.config.debug = false;</code></td>
        <td>If <code>false</code>, calls to <code>Y.log(..)</code> do nothing</td>
    </tr>
    <tr>
        <td><code>filter</code></td>
        <td><code>Y.config.filter = 'raw';</code></td>
        <td>Set to &quot;raw&quot; or &quot;debug&quot; to specify a default version of all included modules.  Default value is &quot;min&quot;</td>
    </tr>
    <tr>
        <td><code>filters</code></td>
        <td><pre><code>Y.config.filters = {
event: 'debug',
node: 'raw'
};</code></pre></td>
        <td>Like <code>filter</code> but can be used to specify file version on a per-module basis.</td>
    </tr>
    <tr>
        <td><code>logInclude</code></td>
        <td><pre><code>Y.config.logInclude = {
node: true
};</code></pre></td>
        <td>Allow only log messages assigned to the specified sources to propagate.  Note a single module may use multiple sources.</td>
    </tr>
    <tr>
        <td><code>logExclude</code></td>
        <td><pre><code>Y.config.logExclude = {
attribute: true
};</code></pre></td>
        <td>Prevent log messages from the specified sources from propagating.  Typically either <code>logInclude</code> or <code>logExclude</code> is configured, not both.</td>
    </tr>
</tbody>
</table>

<pre class="code prettyprint">&#x2F;&#x2F; Setting debug to true is unnecessary, but is included for illustration.
&#x2F;&#x2F; Setting filter to &#x27;raw&#x27; facilitates stepping through module code during
&#x2F;&#x2F; debugging.  Specifying &#x27;debug&#x27; filters for slider and dd will result in all
&#x2F;&#x2F; log statements from those modules being included.
YUI({
    debug: true,
    useBrowserConsole: false,
    filter: &#x27;raw&#x27;,
    filters: {
        slider: &#x27;debug&#x27;,
        dd: &#x27;debug&#x27;
    }
}).use(&#x27;slider&#x27;, &#x27;console&#x27;, function (Y) {
    ...
});

&#x2F;&#x2F; Request the debug version of all loaded files, but only allow log statements
&#x2F;&#x2F; from the sources &#x27;node&#x27; and &#x27;dom-screen&#x27;.
YUI({
    useBrowserConsole: false,
    filter: &#x27;debug&#x27;,
    logInclude: {
        node: true,
        &quot;dom-screen&quot;: true
    }
}).use(&#x27;slider&#x27;, &#x27;console&#x27;, function (Y) {
    ...
});</pre>


<p>
    Specifying the <code>filters</code> config to include only debug versions
    of the modules you want log messages from is effectively the same as the
    prior option, and has the same effect on page performance.  Specifying a
    &quot;debug&quot; filter and filtering sources via <code>logInclude</code>
    or <code>logExclude</code> has a greater impact because the calls to
    <code>Y.log(..)</code> are still present in all modules, even though they
    will be ignored.
</p>

<p>
    Look at the <a href="console-yui-config.html">YUI
    configuration to filter log messages</a> example for reference.
</p>

<h4 id="log_level"><code>logLevel</code></h4>

<p>
    Most log statements in YUI 3 modules are &quot;info&quot; messages.
    Changing the <code>logLevel</code> configuration for your Console instance
    will limit the messages that display in the Console.  Obviously, the debug
    files must be used for this as well.
</p>

<pre class="code prettyprint">YUI({
    useBrowserConsole: false,
    filter: &#x27;debug&#x27; &#x2F;&#x2F; use all debug files
}).use(&#x27;overlay&#x27;, &#x27;console&#x27;, function (Y) {

    &#x2F;&#x2F; Only allow &#x27;warn&#x27; or &#x27;error&#x27; messages to display
    new Y.Console({ logLevel: &#x27;warn&#x27; }).render();

});</pre>


<p>
    Console will actually default its <code>logLevel</code> attribute from the
    so named YUI configuration property if it is specified.  Note that unlike
    the attributes listed in the previous option, setting the
    <code>logLevel</code> in the YUI config will not alter the behavior of the
    logging subsystem.  The configuration is simply used as a default value for
    instantiated Consoles.
</p>

<pre class="code prettyprint">&#x2F;&#x2F; Include debug version of the dom module, but only broadcast log messages
&#x2F;&#x2F; from the &#x27;dom-screen&#x27; source that are warnings or errors.
YUI({
    useBrowserConsole: false,
    filters: { dom: &#x27;debug&#x27; },
    logInclude: { &#x27;dom-screen&#x27;: true },
    logLevel: &#x27;warn&#x27;   &#x2F;&#x2F; this has no affect on Y.log statements
}).use(&#x27;dd&#x27;,&#x27;console&#x27;, function (Y) {

    &#x2F;&#x2F; With the YUI config above, these are now equivalent
    var consoleA = new Y.Console();
    var consoleB = new Y.Console({ logLevel: &#x27;warn&#x27; });

});</pre>


<p>
    <code>logLevel</code> filtering, as with any filtering occurring at the
    Console, has a greater impact on page performance, since all messages,
    regardless of their category, are being broadcast from the logging
    subsystem to the Console before any preventative action is taken.
</p>

<h4 id="entry">Preventing the Console's <code>entry</code> event</h4>

<p>
    Within Console, messages are transfered to the print loop buffer via an
    <code>entry</code> event.  For fine grained control over which messages
    reach the Console body, implementers can subscribe to the event and prevent
    messages from being displayed by calling <code>preventDefault()</code> on
    the event.
</p>

<pre class="code prettyprint">var yconsole = new Y.Console();
yconsole.on(&#x27;entry&#x27;, function (e) {

    &#x2F;&#x2F; the normalized message object is stored on the event in the &#x27;message&#x27;
    &#x2F;&#x2F; property.
    if (&#x2F;Frank&#x2F;.test(e.message.message)) {
        e.preventDefault(); &#x2F;&#x2F; we don&#x27;t talk about Frank here.
    }

});</pre>


<p>
    The signature of the normalized message is <a href="#anatomy">noted
    above</a>.
</p>

<p>
    This approach affords the most flexibility, as you can filter by
    arbitrarily complex criteria, and is the only option here not limited to
    comparing the category or source.
</p>

<p>
    This flexibility comes at a cost, though.  Because the subscriber code is
    necessarily executed for every log message received, there is a greater
    impact on page performance .
</p>

<h4 id="console-filters">ConsoleFilters plugin</h4>

<p>
<img src="../assets/console/images/console_filters.png" alt="Console with the ConsoleFilters UI added" style="float: right; margin-left: 2em;">

    For runtime display filtering by both category and source, the <a
    href="../console-filters/index.html">ConsoleFilters plugin</a> can be added to the
    Console.
</p>

<pre class="code prettyprint">YUI({..}).use(&#x27;console-filters&#x27;, function (Y) {
    new Y.Console({
        newestOnTop: false,
        plugins: [ Y.Plugin.ConsoleFilters ]
    }).render();

    &#x2F;&#x2F; OR

    var yconsole = new Y.Console({..});
    yconsole.plug(Y.Plugin.ConsoleFilters);

    yconsole.render();
});</pre>


<p style="clear: right;">
    The ConsoleFilters plugin adds a set of checkboxes to the Console footer,
    one for each category and source currently reported.  Only those messages
    that match one of the checked categories and sources will be displayed.
</p>

<p>
    Unlike any of the prior options, messages filtered from the display by the
    ConsoleFilters plugin can be redisplayed by rechecking the corresponding
    category or source checkbox.
</p>

<p>
    This approach has the greatest affect on page performance because in order
    to support reassembling the Console contents in real time, all Console
    messages are stored in memory and more conditional logic is inserted into
    the path from log statement to Console display.
</p>

<p>
    Look at the <a href="../console-filters/console-filters-intro.html">ConsoleFilters
    plugin</a> example.
</p>

<h3 id="events">Console events</h3>

<p>
    In addition to the standard <code><em>attribute</em>Change</code> events
    and others common to all Widgets, Console broadcasts the following
    events:
</p>

<table>
<thead>
    <tr>
        <th>Event</th>
        <th>When</th>
        <th>Payload</th>
    </tr>
</thead>
<tbody>
    <tr>
        <td><code>reset</code></td>
        <td>In response to calls to an instance's <code>reset()</code> method.  The default function for the event performs the reset detailed above.</td>
        <td>none</td>
    </tr>
    <tr>
        <td><code>entry</code></td>
        <td>In response to messages being received from the <code>yui:log</code>.  The default function for the event sends the normalized message object to the print loop buffer.</td>
        <td>{ message : (<a href="#anatomy">normalized message object</a>) }</td>
    </tr>
</tbody>
</table>

<p>
    This is not an exhaustive list.  See the <a href="http://yuilibrary.com/yui/docs/api/module_console.html">API docs</a> for a complete listing.
</p>
</div>
        </div>

        <div id="sidebar" class="yui3-u">
            
                <div id="toc" class="sidebox">
                    <div class="hd">
                        <h2 class="no-toc">Table of Contents</h2>
                    </div>

                    <div class="bd">
                        <ul class="toc">
<li>
<a href="#getting-started">Getting Started</a>
<ul class="toc">
<li>
<a href="#sam">Trigger the CSS skin</a>
</li>
</ul>
</li>
<li>
<a href="#logging">The YUI logging subsystem</a>
</li>
<li>
<a href="#using">Using the Console Widget</a>
<ul class="toc">
<li>
<a href="#setup">Instantiating and configuring a Console</a>
<ul class="toc">
<li>
<a href="#instantiation">Instantiation</a>
</li>
<li>
<a href="#config">Common configuration attributes</a>
</li>
<li>
<a href="#buffer">The print loop</a>
</li>
<li>
<a href="#universal">Share a Console between YUI instances</a>
</li>
</ul>
</li>
<li>
<a href="#display">Console display</a>
<ul class="toc">
<li>
<a href="#anatomy-of-the-console">Anatomy of the Console</a>
</li>
<li>
<a href="#anatomy">Anatomy of a message</a>
</li>
</ul>
</li>
<li>
<a href="#controls">Console interaction</a>
<ul class="toc">
<li>
<a href="#collapse">Collapsing, expanding, hiding and showing</a>
</li>
<li>
<a href="#pause">Pausing</a>
</li>
<li>
<a href="#clear">Clearing and resetting</a>
</li>
</ul>
</li>
<li>
<a href="#filter">Filtering Console messages</a>
<ul class="toc">
<li>
<a href="#debug_files">Using debug files</a>
</li>
<li>
<a href="#yui_config">Choose which modules log</a>
</li>
<li>
<a href="#log_level"><code>logLevel</code></a>
</li>
<li>
<a href="#entry">Preventing the Console's <code>entry</code> event</a>
</li>
<li>
<a href="#console-filters">ConsoleFilters plugin</a>
</li>
</ul>
</li>
<li>
<a href="#events">Console events</a>
</li>
</ul>
</li>
</ul>
                    </div>
                </div>
            

            
                <div class="sidebox">
                    <div class="hd">
                        <h2 class="no-toc">Examples</h2>
                    </div>

                    <div class="bd">
                        <ul class="examples">
                            
                                
                                    <li data-description="The basics of setting up a Console">
                                        <a href="console-basic.html">Creating a Console for Debugging</a>
                                    </li>
                                
                            
                                
                                    <li data-description="Using your YUI instance configuration to filter which messages are reported in the Console">
                                        <a href="console-yui-config.html">YUI Configuration to Filter Log Messages</a>
                                    </li>
                                
                            
                                
                                    <li data-description="Using the Console&#x27;s logSource attribute to consolidate log messages from multiple YUI instances into one Console">
                                        <a href="console-global.html">Creating a Universal Console</a>
                                    </li>
                                
                            
                                
                            
                        </ul>
                    </div>
                </div>
            

            
                <div class="sidebox">
                    <div class="hd">
                        <h2 class="no-toc">Examples That Use This Component</h2>
                    </div>

                    <div class="bd">
                        <ul class="examples">
                            
                                
                            
                                
                            
                                
                            
                                
                                    <li data-description="Adding the ConsoleFilters plugin to a Console instance for more granular run time log message filtering">
                                        <a href="../console-filters/console-filters-intro.html">Using the ConsoleFilters Plugin</a>
                                    </li>
                                
                            
                        </ul>
                    </div>
                </div>
            
        </div>
    </div>
</div>

<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script>prettyPrint();</script>

</body>
</html>
